package com.dong.dao;

import java.sql.Connection;
import java.util.List;

import com.dong.vo.User;

public interface UserDAO {
	//添加用户信息
	public void addUser(User user) throws Exception;
	
	//更新用户信息
	public void updateUser(User user) throws Exception;
	
	//删除用户信息
	public void deleteUser(String uid) throws Exception;
	
	//列出所有用户信息
	public List<User> lisetAllUser() throws Exception;
	
	//列出所给用户名的用户信息
	public User getUser(String uid) throws Exception;
	
	//取得Connection对象
	public Connection getConnection() throws Exception;
	
	//设置Connection对象
	public void setConnection(Connection connection) throws Exception;
}
